<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
<!-- encabezado -->
<html>
    <head>
        <title><?=$title;?></title>
        <meta name="description" content="<?=$description;?>" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="stylesheet" type="text/css" href="<?=base_url();?>css/css.css">
        <link rel="stylesheet" type="text/css" href="<?=base_url();?>css/prueba.css">
    </head>
    <body>
        <div id="doc2" class="yui-t7">
            <div id="hd" role="banner">
                <div class="rounded linea">
                    <div id="caja" class="borde" style="background-color:#fff;padding:5px;text-align:right">

                        <div class="yui-gf">
                            <div class="yui-u first">
                                <a href="<?=base_url();?>index.php"><img src="<?=base_url();?>images/logo_me.jpg"></a>
                            </div>
                            <div class="yui-u">
                                <ul id="nav"><!-- start navigation -->
                                    <li>
                                        <a href="<?=base_url();?>index.php"><?=lang('inicio');?></a>
                                    </li>
                                    <li>
                                        <a href="#" onclick="addSiteComments();"><?=lang('contactenos');?></a>
                                    </li>
                                    <li>
                                        <a href="#" onclick="addSiteVendedor();"><?=lang('servendedor');?></a>
                                    </li>
                                    <?php if($this->session->userdata('logged_in')) { ?>
                                    <li>
                                        <a href="<?=site_url('/datospersonales')?>"><?=lang('datos_personales');?></a>
                                    </li>
                                        <?php if ($this->session->userdata('perms')=='admin'):?>
                                    <li>
                                        <a href="<?=base_url()?>index.php/admin/admin"><?=lang('administrador');?></a>
                                    </li>
                                        <?php endif;?>
                                    <li>
                                        <a href="<?= site_url('/home/logout/')?>"><?=lang('salir');?></a>
                                    </li>
                                    <?php } else { ?>
                                    <li>
                                        <a onclick="showLogin();$('#modal').bind('login',function(){location.reload();});" href="javascript://"><?=lang('ingresar_registrarse');?></a>
                                    </li>
                                    <?php }?>
                                    <li>
                                        <?php
                                        if ($this->session->userdata('perms')=="admin"):?>
                                        <a href="<?=base_url();?>index.php/admin/admin">
                                                <?=$this->session->userdata('name')?>
                                        </a>
                                        <?php else: ?>
                                            <?=$this->session->userdata('name')?>
                                        <?php endif; ?>
                                    </li>
                                </ul><!-- end navigation -->
                            </div>
                        </div>

                    </div>
                </div>
            </div>
            <div style="height:5px"></div><!-- separator -->
            <div id="bd" role="main">
                <!-- end encabezado -->
